﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TRASOutlook
{
    public partial class ConfigureForm : Form
    {
        public ConfigureForm()
        {
            InitializeComponent();
            tx_ServerAddress.Text = Properties.Settings.Default.ServerAddress;
            tx_UpdateInterval.Value = Properties.Settings.Default.UpdateInterval;
        }


        private void button1_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.ServerAddress = tx_ServerAddress.Text;
            Properties.Settings.Default.UpdateInterval = Convert.ToInt32(tx_UpdateInterval.Value);
            Properties.Settings.Default.Save();
            DialogResult = DialogResult.OK;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }
    }
}
